﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Data.Common
{
    public static class DbParameterExtension
    {
        public static void Set_Value(this System.Data.Common.DbParameter parameter, object obj)
        {
            if (obj == null)
            {
                parameter.Value = DBNull.Value;
            }
            else
            {
                parameter.Value = obj;
            }
        }
    }
}
